﻿@using ViewRes
@model YuYuKiCms.Model.RegistrationVm

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}

<h2>@Account.Registration</h2>

@using (Html.BeginForm(new { returnUrl = ViewBag.ReturnUrl, Model }))
{
    @Html.AntiForgeryToken()
    
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>UserAccount</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.UserName)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.UserName)
            @Html.ValidationMessageFor(model => model.UserName)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(m => m.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(m => m.ConfirmEmail)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ConfirmEmail)
            @Html.ValidationMessageFor(m => m.ConfirmEmail)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Password)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>

        <div class="editor-label">
            @Html.Label(Account.ConfirmPassword)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ConfirmPassword)
            @Html.ValidationMessageFor(model => model.ConfirmPassword)
        </div>

        <p>
            <input type="submit" value="@Home.Create" />
        </p>
    </fieldset>
}